<div class="{{if $.Data.IsInline}} layui-inline {{else}} layui-form-item {{end}}">
    <label class="layui-form-label {{if $.Data.IsMust}} layui-form-required{{end}}">{{$.Data.Label}}</label>
    <div class="{{if $.Data.IsInline}} layui-input-inline {{else}} layui-input-block {{end}}">
        <select class="layui-input" name="{{$.Data.Name}}" lay-filter="{{$.Data.Name}}" lay-reqText="{{$.Data.ReqText}}" {{if $.Data.IsMust}} lay-verify="required"{{end}}>
            <option value="">请选择</option>
            {{range $index, $item := .Data.Data}}
            <option {{if eq $.Data.Value $item.Value }}selected{{end}} value="{{$item.Value}}">{{$item.Name}}</option>
            {{end}}
        </select>
    </div>
</div>